package com.syh.feignapi.clients;

import com.syh.bscommon.pojo.Log;
import com.syh.bscommon.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author syh 86187
 * @date 2024/7/16
 * com.syh.feignapi.clients
 * @description
 */
@FeignClient(value = "log-service")//指定调用哪个服务
public interface LogClient {
    @PostMapping("/log/add")
    public Result addLog(@RequestBody Log log);
}
